package com.imoblife.brainwavestus.util;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;

public class AlertDialogUtil {
	private Context mContext;

	public AlertDialogUtil(Context context) {
		this.mContext = context;
	}

	public void showAlertDialog(String title, String content, String dismiss) {
		Dialog dialog = new AlertDialog.Builder(mContext).setTitle(title)
				.setMessage(content)
				.setNegativeButton(dismiss, new OnClickListener() {
					
					public void onClick(DialogInterface dialog, int which) {
						dialog.dismiss();
					}
				}).create();
		dialog.show();
	}

}
